package com.hao.crm.domain;

import java.util.ArrayList;
import java.util.List;

import org.apache.ibatis.type.Alias;
@Alias("Role")
public class Role {
    private Long id;

    private String name;

    private String sn;
    
    private List<Permission> permissions = new ArrayList<>();

    public List<Permission> getPermissions() {
		return permissions;
	}

	public void setPermissions(List<Permission> permissions) {
		this.permissions = permissions;
	}

	public Long getId() {
        return id;
    }

    public void setId(Long id) {
        this.id = id;
    }

    public String getName() {
        return name;
    }

    public void setName(String name) {
        this.name = name == null ? null : name.trim();
    }

    public String getSn() {
        return sn;
    }

    public void setSn(String sn) {
        this.sn = sn == null ? null : sn.trim();
    }
}